﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Data;
using System.Windows.Controls;

namespace InHD.utilities
{
    public class PasswordParametersConverter : IMultiValueConverter
    {
        public object Convert(object[] values, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            PasswordParameters parameters = new PasswordParameters();
            parameters.CurrentPwd = (PasswordBox)values[0];
            parameters.ChangePwd = (bool)values[1];
            parameters.NewPwd = (PasswordBox)values[2];
            parameters.ConfirmPwd = (PasswordBox)values[3];
            return parameters;
        }
        public object[] ConvertBack(object value, Type[] targetTypes, object parameter, System.Globalization.CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}
